<template>
  <basic-container>
    <avue-tabs :option="tabsOption" @change="handleChange"></avue-tabs>
    <template v-if="tabsType.prop ==='0'">
      <withdrawOne withdrawListType="0"/>
    </template>
    <template v-if="tabsType.prop ==='1'">
      <withdrawTwo withdrawListType="1"/>
    </template>
    <template v-if="tabsType.prop ==='2'">
      <withdrawThere withdrawListType="2"/>
    </template>
  </basic-container>
</template>

<script>
import withdrawOne from "./components/withdrawOne";
import withdrawTwo from "./components/withdrawTwo";
import withdrawThere from "./components/withdrawThere";
export default {
  components: {
    withdrawOne,
    withdrawTwo,
    withdrawThere
  },
  data() {
    return {
      tabsType: {},
      tabsOption: {
        column: [
          {
            label: "未审核提现",
            prop: "0"
          },
          {
            label: "处理中提现",
            prop: "1"
          },
          {
            label: "已完成提现",
            prop: "2"
          }
        ],
      },
    };
  },
  created() {
    this.tabsType = this.tabsOption.column[0];
  },
  methods: {
    handleChange(column) {
      this.tabsType = column;
    }
  }
};
</script>

<style>
</style>
